Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm: prevent query-scheduler from terminating connections #3262

Merged

Conversation

dimitarvdimitrov
Copy link
Contributor

@dimitarvdimitrov dimitarvdimitrov commented Oct 20, 2022

What this PR does

The query-scheduler periodically terminates connections to the query-frontend and querier. This setting was intended to be a setting for the GEM gateway, but was added to all components. The query frontend has a memory leak when this happens and the queriers abort whole user queries when this happens.

This PR sets the max connection age on the scheduler effectively to infinity, so it doesn't terminate the connections preemptively.

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
@dimitarvdimitrov dimitarvdimitrov merged commit 0107f45 into main Oct 20, 2022
@dimitarvdimitrov dimitarvdimitrov deleted the dimitar/helm-query-scheduler-max-connection-age branch October 20, 2022 11:02
@grafanabot
Copy link
Contributor

The backport to release-2.4 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new branch
git switch --create backport-3262-to-release-2.4 origin/release-2.4
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x 0107f45e0a370ef8ecc1828fd00b52344df12bb5
# Push it to GitHub
git push --set-upstream origin backport-3262-to-release-2.4
git switch main
# Remove the local backport branch
git branch -D backport-3262-to-release-2.4

Then, create a pull request where the base branch is release-2.4 and the compare/head branch is backport-3262-to-release-2.4.

dimitarvdimitrov added a commit that referenced this pull request Oct 20, 2022
Helm: prevent query-scheduler from terminating connections

Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>

(cherry picked from commit 0107f45)
@dimitarvdimitrov
Copy link
Contributor Author

the mentioned memory leak was fixed in #3302

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants